Analysis of a theoretical model based on similarity for studying RNA base pairings