I get what the OP is asking, and certainly think molakule has THE answer to the question asked.
But the next question is why you want to do that ?
Given that the 40 will likely have higher AW additive concentrations, the blend will likely have higher than either an ILSAC 30 or the 20 - possible plus.
The 40 will (likely) have a lower basestock viscosity than a 30 would, and so will the 0W20 - probably minus.
The 40 may not have FMs in it that an ILSAC 20 or 30 will likely have. Depending on how far the viscosity is altered, will there be sufficient FMs in the final blend ? - possible minus.
Dilution (e.g. kero) gives all of the possible disadvantages (additive dilution, "effective" basestock viscosity) with no upside in relation to the OP's question...I count MMO/Seafoam in this camp.
e.g. Penrite Oz recommend blending only within their product streams, and their "racing range" all have the same add pcks from the 0W20 (really a 16, released before the new J300), through to 15W50...the 30 and the 20 have non SN/SM additive packages, and are the only ones with FMs.
I'd pick an XW30, ILSAC or A3/B4 depending on where exactly you want your viscosity moved to...there are enough of them.
Particularly with mixing a 20 and 40, I think it's a worse compromise than a formulated 30.