Samuel and Pierre shared 83 sweets. Samuel gave 2 sweets away and ate 2/5 of his remaining sweets. Pierre ate 1/4 of his sweets and they each had an equal number of sweets left. How many sweets did each boy have left?

AAAaannndd the bot gets it wrong yet again!

s+p = 83
3/5(s-2) = 3/4 p
they both ended with 27 sweets

Samuel and Pierre each had 33 sweets left.