Solve problems 30,45,53 using PHP.