Joseph squares a number and subtracts 8 from the answer. He then divides this result by 7. Finally he adds 12 and the result is now 20. What was Joseph's original number?