So I am having trouble determining the Units form Beg. Inventory, March 2 Purchase, and June 30 Purchase from the problem below:

Here is the beginning portion it is referring to if it is needed:

Can anyone help me solve for the 'x's? I don't know where to start. Ive tried many times but I just can't seem to get ahold of this accounting stuff..