Source: https://mryangteacher.weebly.com/uploads/7/7/0/2/7702250/pythag_hw_pg_99-100_solutions.pdf