For a gas P-V curve is given as shown in the diagram. Curve path follows equations \((V - 2)^2 = 4aP\). Find work done by gas in given cyclic process. 

Find heat given to gas to take it from A to B. (Given: $C_v = 21$ S.I. units, $P_2 = 30$ Pa, $P_1 = 21.7$ Pa, $R = 8.3$ S.I. units, $n = 10$ moles) 