Solve problems 8,27,34,36,52 using PHP.