Don't let the shark tough the Jellyfish, because it will lower the shark's health. Use the arrow keys to move the shark. Eat as much fish you can it will increase your shark's health.
https://scratch.mit.edu/projects/570582562