Note that book value has two meanings. From Investopedia:
Book value of an asset is the value at which the asset is carried on a balance sheet and calculated by taking the cost of an asset minus the accumulated depreciation. Book value is also the net asset value of a company, calculated as total assets minus intangible assets (patents, goodwill) and liabilities. For the initial outlay of an investment, book value may be net or gross of expenses such as trading costs, sales taxes, service charges and so on.
The second meaning relates to the company accounting. You'd look that up in shareholder reports. This does not seem to be what you mean.
The first meaning relates to how much you paid for the investment. This is easy to determine if you ignore inflation, trading expenses, and such, as it is just the amount of money you paid. Another confounding factor is selling shares. Your book values are consistent with this meaning, so I'll assume that that is what you mean.
In your case, on April 30th, you own 40 shares for which you paid $800 ($10 * 10 + $20 * 10 + $30 * 10 + $20 * 10). So the book value is $800. If you sell the shares, you can pick which ones. Some common methods used to pick are FIFO, LIFO, and Average.
FIFO (First In First Out). With FIFO, when you sell 10 shares, you sell the first ones that you bought. In this case, that would be the 10 shares you bought on January 1st for $100. That would give you a new book value of $800 - $100 = $700. If you sold another 10 shares, those would be the ones that you bought on February 1st. So on and so forth.
LIFO (Last In First Out). With LIFO, you sell the most recent ones that you bought. In this case, that would be the 10 April 1st shares that you bought for $200. The new book value would be $800 - $200 = $600.
Average. With Average, you determine the average price that you paid for your shares and use that to determine the book value of any shares that you sell. In this case, the average price that you paid for your 40 shares is $800 / 40 = $20. So you'd have a remaining book value of $800 - 10 * $20 = $600. If you buy more shares, you would add their book value to your remaining book value. So if you bought 10 shares at $30, your new book value would be $600 + 10 * $30 = $900. Your new average price would be $900 / 40 = $22.50.
Note that both FIFO and LIFO can be seen directly from the table. Average requires additional calculations to determine. FIFO is the easiest to follow, as all the shares up to a point are sold. All the later shares are still in your possession. LIFO can have gaps (if you mix selling and buying). And Average requires continual updating.
There may be tax advantages to using the other methods that outweigh their added complexity.