In the following food chain, grass provides 4000J of energy to the grasshopper

In the following food chain, grass provides 4000J of energy to the grasshopper. How much energy will be available to snake and frog ?
Grass, grasshopper, frog, snake.

Grass -------> Grasshopper-------> Frog-------->Snake
(4000 J) --------> (400 J)--------> (40 J) -------> (4 J)
Thus, 40J energy is available to frog while 4J energy is available to snake.