A Co. produces two products P and Q – that are both worked on in two departments – 1 and 2. Each Unit of P spends 1 hr in dept. 1 and 2 hrs in dept. 2. Each Unit of Q spends 2 hrs in dept. 1 and 2 hrs in dept. 2.
You need to calculate the overhead cost per hour in each of the two departments (by dividing the total cost by total hours for each department).
Then you can calculate the overhead cost for Product P by charging 1 hour at the cost per hour in dept 1 and also 2 hours at the cost per hour in dept 2.