All of these costing methods are explained in full in my free lectures. The lectures are a complete free course for Paper MA and cover everything needed to be able to pass the exam well.
(Why are you attempting a question for which you do not have an answer? You should be using a Revision Kit from one of the ACCA Approved Publishers – they have answers 🙂 )