Jordan is planning to buy a new video game console and finds one that costs $300. During a sales event, the store offers a discount of 15% on the console. After applying the discount, Jordan decides to buy a game which costs $40. What is the total amount Jordan will pay for both the console and the game?