It isn't really that simple, not when you factor in that states like India and Pakistan spend millions on fighter aircraft and space programs whilst people are dying of dysentery in the streets. I have to say I object to people implying that we in this country have some responsibility for this based on some (largely conflated) colonial exploitation that ceased over 100 years ago.
Just because we are not responsible doesn't mean that we should not help out of course, but I would be more inclined to help out if the indigenous governments of these countries were in the slightest but interested in fixing the problems, or at least were to prioritise them and maybe get round to the space program and the nuclear submarines once they have taken care of their more fundamental responsibilities.