Given the demand and supply functions for a firm operating under imperfect competition, calculate the consumer and producer surplus.

Given : demand p=113-q^2
supply p=(q+1)^2

I have managed to calculate the equilbrium price (p)=64 and the output (q)=7, but cannot work out how to calculate the consumer or producers surplus.

Any ideas?