A problem from the Lilavati by Bhaskaracharya. Written in the 12th century. This appeared on page 18 of The Mathematical Mystery Tour by UNESCO in 1989.