For Install MacOS mojave I purchased a MacBook Pro 6,2 (15" mid 2010) running macOS High Sierra

How I can install macOS Mojave in this Mac?

Several time I tried to install Mojave in this Mac, but it gives an error message that version is not compatible with this Mac.

Would you please help for solve my problem?
Several older model macs are not compatible with Mojave. This site will list what Macs can run Mojave.  The only 2010 model listed is for an Mac Pro with a specific graphics card.