It's a book about two kids that get transported to this fantasy world. The people there want to make one of them ruler of one of the countries and the other is hunted down. It's got fantasy and fairy tale elements also in it.
The name of the book is Farworld, I've been looking for it too and I just found it. https://www.goodreads.com/book/show/3223890-water-keep