EUP using FIFO Method

I am taking BEC within a week. I am still having much difficult time understanding how to calculate EUP using FIFO method. Could somebody explain to me and what formula to use to this? Thanks!!!