Unless the macro tubes have the proper electrical contacts you have to use manual stop-down metering techniques with the 18-55mm. The same goes for the manual focus lens in any case if it is not an "A" type lens.
https://www.pentaxforums.com/forums/54-pentax-lens-articles/110657-how-use-me...-k-x-k-7-a.htm https://www.pentaxforums.com/forums/53-pentax-dslr-camera-articles/100260-man...tic-lenses.htm
If the 18-55mm does not have an aperture setting ring it will only shoot fully closed down on tubes without contacts. If the tubes do not have the auto-aperture lever you will have to manually stop down the lens before taking the exposure.
To use extension rings/tubes set the lens to infinity and focus by moving the lens and camera to/from the subject (or the subject closer/further to the lens).
This article will explain various macro techniques and equipment and explain the difference between the types of tubes:
https://www.pentaxforums.com/forums/54-pentax-lens-articles/152336-cheap-macr...lose-work.html