The two variable substitution problem for free products of groups