Three electrolytic cells P, Q and R containing aqueous solutions of \(Al(NO_3)_3\), \(AgNO_3\) and \(CuSO_4\) respectively are connected in series. A current of 1.5 A was passed until 1.45 g of Ag was deposited. Find the masses of Al and Cu deposited.