The statment is correct but if you have to work out the value of x you need a total amount of the purchase without that or atleast some sort of value it is not possible to work out
Try just dividing 23/5 and you’d get 4 something. But since 5.97 is close to 6 you can also mentally divide 23/6 and get 3something (it’d be really close to 4)