How to save data in variables to process them

Would love to help you out - can you format your code following these guidelines ?