solve first and second tasks