Law of sines
sinB = bsinA/ a
sinB = (51.8)sin(33'40'')/ (31.5)
B = 65 (degrees) 43'46''
C= 180 - (A+B)
C= 180- [33'40'' + 65(degrees)43'46'']
C= 80(degrees)36'14''
c= asinC/sinA
c= (31.5)sin[80(degrees)36'14'']/ sin(33'40'')
c= 56.05
Sorry if it's late