The mind and body always work together to achieve a goal that is staying healthy. It is very hard for one to function without the other, both need to be in order before you can be productive.
When your body is healthy, the mind is always calm and productive. If you are not in a good state of health you will always find it very difficult to think and function well because your mind will never be at rest.
Whatever you do try and stay healthy. As they say "the greatest wealth is health".