easy peasy. You'll love it.
Rosemary will last and the best way to plant it is to buy a small upright bush in a garden centre and plant it on it's own in a pot with general purpose compost. That way it can spread - if it gets too big just replant in a larger pot.
Basil will only last a while and is best eaten and then a new plant planted so either buy a number of little plants or from seed.
The basil in particular will be very thirsty so make sure you water well everyday and make sure they don't get waterlogged. The rosemary, once established will be better.
Both can be grown from seed and recommend using seed trays and some seed compost if you can get it. Just follow the instructions on the packet and keep inside so you can regulate heat/sun and water until they are large enough to plant out (realise you are in middle east so too much sun might be more of a problem with you).
The first time I grew veggies I was gobsmacked when they germinated and they were such fun. Most are relatively easy to grow and since seeds are quite cheap then a few casualties is not the end of the world - if you like tomatoes you should definately grow them in your climate...
Good luck