The sum of the first three terms is 24 and the sum of the next three terms is 51. Find the first term and the common difference

a + a+d + a+2d = 24

a+3d + a+4d + a+5d = 51

now simplify the equations and solve for a and d.