Yes.
If you say your brother was half your age when you were 12 that means your brother was 6 years then .
And now you are 28. Subtract 12 from your age which gives 16, add it to your brothers past age which was 6, you will get 22.
Therefore 22 is your brother's age.