Alright, let's work through 5161 times 6671 step by step
5161 × 6671 = 6671 × (5161)
+ 6671 × 1 that is equal 6671
+ 6671 × 60 producing 400260
+ 6671 × 100 that is equal 667100
+ 6671 × 5000 what gives us 33355000

= 34429031
