If only I am were richer is correct. If it was “an” use it before words that start with a vowel sound. Would be would mostly meant like in place or like when your saying something that you want to explain and will be really don’t make sence.
4.4m questions
5.7m answers