Hamlet and Ophelia had stickers in the ratio 4:7. Hamlet gave 27 stickers to Ophelia, who gave 45 stickers to Claudius. The sum of Hamlet and Ophelia’s stickers became 153 more than the number of stickers Claudius had. Claudius then gave 2/9 of her stickers to Hamlet and 1/4 of her remaining to Ophelia. In the end, the sun of Hamlet and Claudius’s stickers was 71 more than Ophelia’s. How many stickers did Ophelia have at first?

2 answers

Hamlet's number --- 4x
Ophelia's number --- 7x
Claudias number ---- y

after 1st exchange:
Hamlet: 4x-27
Ophelia: 7x+27 - 45 = 7x - 18
Claudius: y + 45
so: (4x-27) + (7x-18) - (y+45) = 153
11x - y = 63 or y = 11x - 63

after 2nd exchange:
Hamlet: 4x-27 + (2/9)(y+45)
Ophelia: 7x-18 + (1/4)(7/9)(y+45)
= 7x - 18 + (7/36)y + 35/4
= (1/36)(252x + 7y - 333)
Claudius: y+45 - (1/4)(7/9)(y+45) - ( (7/36)y + 35/4 )
= (11y + 495)/18

4x-27 + (2/9)(y+45) + (11y + 495)/18 - (1/36)(252x + 7y - 333) = 71
which I got to reduce to
108 x + 1845 = 23y , now sub in y = 11x - 63
108x + 1845 = 23(11x - 63)
which I solved to get
x = 3294/745
ARGGGHHHHHH!!!! The answers should clearly be a whole number.

There has to be an error somewhere, I trust my method.
Was going to add that
Something is rotten in the state of Denmark