There between 50and 60 number of eggs in a basket. When loza counts by 3's there are 2 eggs left over. When she counts by 5's there are 4 left over. How many eggs are there in the basket?

58 eggs

As expected the AI is wrong

in the given range,
multiples of 3 with 2 left over: 50, 53, 56, 59
multiples of 5 with 4 left over : 54, 59

so she had 59 eggs