Ok that could possibly work. Don't invest too much time and money on the 10g. Leave it with its current substrate and don't buy any more decor for it. Start planning for the 40g. Researching SW tanks literally takes several weeks, especially if you're going to convert BW to SW. Check craigslist to find a good deal for a complete setup. The one thing you need right now is marine salt, refractometer, rubbermaid trashcan, and a water pump. You will need to pre-mix the brackish water inside the trashcan during weekly 50% water changes.
When you get a GSP, buy the smallest one available. 10g is super small. The waste produced by 1 GSP is too much for a 10g, so you'll end up overwhelming your system. The bigger the GSP, the more waste it will produce.
Remember to ask as many questions as possible. Research for the answers and post if you can't find the answers.