$a$ $\underbrace{[10]}$ $\underbrace{[15]}$
$streets$ $buildings$
Now you want to go and meet a friend who lives on $j^{th}$ building of $i^{th}$ street means $a[i][j]$
So, firstly cross $(i-1)$ streets each consist of $15$ buildings: $(i-1)\times 15=15i-15$
Now cross $(j-1)$ buildings in order to reach your destination: $j-1$
$Ans: RMO: 100+15i-15+j-1=>15i+j+84$
$a$ $\underbrace{[10]}$ $\underbrace{[15]}$
$buildings$ $streets$
Now you want to go and meet a friend who lives on $i^{th}$ building of $j^{th}$ street means $a[i][j]$
So, firstly cross $(j-1)$ streets each consist of $10$ buildings: $(j-1)\times 10=10j-10$
Now cross $(i-1)$ buildings in order to reach your destination: $i-1$
$Ans: CMO: 100+10j-10+i-1=>10j+i+89$