What you want to do is possible, but you are going to need to post some additional information before the group can make actionable recommendations.
Good place to start would be to post the config of your current switch. This will show us how you are connecting to the MSA 2040.
It is likely that putting the pair of switches into an IRF will accomplish most of what you want. Note that doing that will require a switch reboot, meaning you will need a maintenance window when you can disrupt network traffic.
Post your config, and we'll go from there.
MJ