The word BRAIN

Puzzle Question: 

Each of the five characters in the word BRAIN has a different value between 0 and 9. Using the given grid, can you find out the value of each character?
B R A I N 31
B B R B A 31
N I A B B 32
N I B A I 30
I R A A A 23
37 29 25 27 29
The numbers on the extreme right represent the sum of the values represented by the characters in that row. Also, the numbers on the last raw represent the sum of the values represented by the characters in that column. e.g. B + R + A + I + N = 31 (from first row)

Toughness: 
Tough