You need to put both equations equivalent to themselves I.E. (5x-15)=(4x+15)
then just do it as a regular problem
so add 15 to both sides and you get (5x)=(4x+30) there for x=30
Penalty was supposed to be death but the prince was lenient and exiled instead
This is important to have a better understanding of why the author chose to write the paragraph