This solution came from Sue Liu of Madras College, St Andrew's, Scotland.
The limerick gives three equations