working out the proposed problem