Sally works at a restaurant where she earns $23 per hour. David is a tradesman and earns $50 plus $18 per hour. Find the number of hours worked for which Sally and David earn the same amount.