Alright, let's work through 5887 times 509 step by step
5887 × 509 = 509 × (5887)
+ 509 × 7 which equals 3563
+ 509 × 80 giving us 40720
+ 509 × 800 what gives us 407200
+ 509 × 5000 that is equal 2545000

= 2996483
